<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Search.ascx.cs" Inherits="Tathata.Web.Modules.SearchControl" %>
<div class="hl">
    <img src="<%=Page.ResolveUrl("~/images/sp.gif")%>" /></div>
<div style="position: relative; float: left; width: 100%">
    <div class="blockHeader">
        <img src="<%=Page.ResolveUrl("~/images/VerticalLine.gif")%>" style="margin-top: 14px;" /><b><%=GetLocaleResourceString("SearchPage.Search")%></b><br />
    </div>
    <div class="text1">
        <table cellspacing="0" cellpadding="0" class="blockBordered">
            <tbody>
                <tr>
                    <td>
                        <table width="100%" cellspacing="0" cellpadding="0" border="0">
                            <tbody>
                                <tr>
                                    <td colspan="2">
                                        <asp:TextBox runat="server" ID="txtSearchTerm" Width="100%"></asp:TextBox><br style="line-height: 1px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <br style="line-height: 5px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:CheckBox runat="server" ID="chSearchInProductDescriptions" Checked="false" />
                                        <%=GetLocaleResourceString("SearchPage.SearchInProductDescriptions")%>
                                    </td>
                                    <td align="right">
                                        <asp:Button runat="server" ID="btnSearch" OnClick="btnSearch_Click" Text="Search">
                                        </asp:Button>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <u>
                                            <asp:Label runat="server" ID="lblError" EnableViewState="false"></asp:Label>
                                        </u>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        <br style="line-height: 15px;" />
        <asp:GridView ID="gvProducts" runat="server" AutoGenerateColumns="False" Width="100%"
            ShowHeader="false">
            <Columns>
                <asp:BoundField DataField="ProductID" HeaderText="ProductID" Visible="False"></asp:BoundField>
                <asp:TemplateField HeaderText="Name" ShowHeader="false">
                    <ItemTemplate>
                        <div style="padding-left: 10px; padding-right: 10px; text-align: left;">
                            <a class="link" href="<%#SEOHelper.GetProductURL(Convert.ToInt32(Eval("ProductID")))%>">
                                <%#Server.HtmlEncode(Eval("Name").ToString())%>
                            </a>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</div>
